package br.ufc.minijavaufc.ast;

import br.ufc.minijavaufc.visitor.TypeVisitor;
import br.ufc.minijavaufc.visitor.Visitor;

public class ExtendedClassDeclaration extends ClassDeclaration {
	public Identifier classIdentifier, extendedClassIdentifier;
	public VarDeclarationList varDeclarationList;
	public MethodDeclarationList methodDeclarationList;

	public ExtendedClassDeclaration(Identifier classIdentifier, Identifier extendedClassIdentifier, VarDeclarationList varDeclarationList,
			MethodDeclarationList methodDeclarationList) {
		super();
		this.classIdentifier = classIdentifier;
		this.extendedClassIdentifier = extendedClassIdentifier;
		this.varDeclarationList = varDeclarationList;
		this.methodDeclarationList = methodDeclarationList;
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);		
	}

	@Override
	public Type accept(TypeVisitor visitor) {
		return visitor.visit(this);
	}

}
